Ext.define('com.hh.goodsmanage.GoodsmanageMainOutBuyEdit', {
			extend : 'com.hh.base.BaseServicePanel',
			constructor : function(config) {
				this.config = config || {};
				this.superclass.constructor.call(this, this.config);
				this.open();
			},
			open : function() {
				var goodsmanageOutBuyList = ExtUtil
						.create(
								"com.hh.goodsmanage.GoodsmanageOutBuy.GoodsmanageOutBuyList",
								{
									region : 'west',
									split : true,
									width : 350,
									border : '1',
									getGridConfig : function() {
										return {
											border : false
										};
									}
								});
				var goodsmanageOutList = ExtUtil.create(
						"com.hh.goodsmanage.GoodsmanageOut.GoodsmanageOutList",
						{
							disabled : true,
							region : 'center',
							border : '1',
							getGridConfig : function() {
								return {
									border : false
								};
							}
						});
				goodsmanageOutBuyList.grid.on('itemclick', function(view,
								record) {
							goodsmanageOutList.setDisabled(false);
							goodsmanageOutList.outBuyGridRecord = record;
							goodsmanageOutList.grid.getStore().proxy.extraParams = {
								outBuyersId : record.get("id")
							};
							goodsmanageOutList.grid.getStore().load();
						});

				goodsmanageOutBuyList.grid.getStore().on('load',
						function(store) {
							goodsmanageOutList.setDisabled(true);
							goodsmanageOutList.grid.getStore().proxy.extraParams = {
								outBuyersId : null
							};
							goodsmanageOutList.grid.getStore().load();
						});
				this.add(goodsmanageOutBuyList);
				this.add(goodsmanageOutList);
			}
		});